<?php
include"config.php";
		
		$id = $_POST['id'];
		$username=$_POST['username'];
		$nama =$_POST['nama'];
		$password = md5($_POST['password']);
		$level = $_POST['level'];
		$status = $_POST['status'];
				
		$sql="update tbl_user set username = '$username', nama = '$nama', password = '$password', level = '$level', status = '$status' where id_user = '$id'";
		$res=mysql_query($sql) or die (mysql_error());
		header("location:index.php?page=user");
		
?>